package com.yonyou.dao.mapper;

import com.yonyou.dao.entity.TemplateJoinBOViewVO;
import com.yonyou.dao.entity.TemplateModelVO;
import com.yonyou.dao.entity.TemplateVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by yijx on 2017/12/29.
 */
public interface ITemplateMapper extends IBaseMapper<TemplateVO>{

    TemplateModelVO getTemplateModel(@Param("templateCode") String templateCode);

    List<TemplateJoinBOViewVO> getAllTemplates();

    List<TemplateJoinBOViewVO>  getTemplatesByBO(@Param("bo_code") String bo_code);

    int updateTemplatePage(@Param("pk_print_template")String pk_print_template,@Param("pageHeight")double pageHeight,
                           @Param("pageWidth") double pageWidth,@Param("versionid") int versionid);

    int updateTemplate(@Param("template")TemplateVO templateVO);

}
